package com.example.wechattest.myAdapter;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;

import com.example.wechattest.R;

public class WechatAdapter extends RecyclerView.Adapter<WechatAdapter.MyHolder> {

    private Context context;

    public WechatAdapter(Context context) {
        this.context = context;
    }

    @NonNull
    @Override
    public WechatAdapter.MyHolder onCreateViewHolder(@NonNull ViewGroup parent, int viewType) {
        View inflate = LayoutInflater.from(context).inflate(R.layout.wechat_item, null);
        return new MyHolder(inflate);
    }

    @Override
    public void onBindViewHolder(@NonNull WechatAdapter.MyHolder holder, int position) {

    }

    @Override
    public int getItemCount() {
        return 4;
    }

    public class MyHolder extends RecyclerView.ViewHolder {
        public MyHolder(@NonNull View itemView) {
            super(itemView);
        }
    }
}
